import request from '@/utils/iasServiceRequest'
const baseurl = 'rules/ruleMaintenance'

// 新增规则
export function addRuleMaintenance(rule) {
  return request({
    url: baseurl + '/add',
    method: 'post',
    params: rule
  })
}

// 修改规则
export function modifyRuleMaintenance(rule) {
  return request({
    url: baseurl + '/modify',
    method: 'post',
    params: rule
  })
}

// 删除规则
export function deleteRuleMaintenance(id) {
  return request({
    url: baseurl + '/delete',
    method: 'post',
    params: id
  })
}

// 删除规则
export function batchDeleteRuleMaintenance(ids) {
  return request({
    url: baseurl + '/batchDelete',
    method: 'post',
    params: ids
  })
}

// 获取规则信息
export function findByRuleId(ruleId) {
  return request({
    url: baseurl + '/findByRuleId/' + ruleId,
    method: 'get',
    params: null
  })
}

